<template>
	<view>
		detail{{id}}
		<button type="default" @tap="goBack">navigateBack:返回到前面的页面</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:''
			}
		},
		onLoad(option) {
			console.log(option.id)
			this.id = option.id
		},
		methods: {
			goBack() {
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>

</style>
